package com.mst.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {
    @Pointcut("execution(int com.mst.service.IUserService.updateUser(com.mst.domain.User))")
    private void pointCut() {
    }


    @Before("pointCut()")
    public void before() {
        System.out.println("当前毫秒数" + System.currentTimeMillis());
    }
}
